server {

    listen 81;
    server_name technologycloud.net;
    
    default_type 'text/html';
    charset utf-8;

    lua_code_cache on;


    location /freeSeeApi/ {  
        proxy_pass http://localhost:8090/;
        add_header Access-Control-Allow-Origin *;
        add_header Access-Control-Allow-Headers X-Requested-With;
        add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
    }
    
    location ^~ /freeSee/ {
        alias /opt/andrew_git/freeSee/;
        try_files $uri /index.html;
        index index.html;
    }

    location / {
        alias /opt/andrew_git/freeSee/;
        try_files $uri /index.html;
        index index.html;
    }

}